import plotly.express as px
import matplotlib.pyplot as plt
import pandas as pd
# Import Iris dataset from scikit-learn
from sklearn.datasets import load_iris
# Load the dataset
iris = load_iris()
# Create a DataFrame
df = pd.DataFrame(data=iris.data, columns=iris.feature_names)
df['target'] = iris.target
# Functioning Plotly graph
fig = px.scatter(df, x='sepal length (cm)', y='sepal width (cm)', color='target', title='Iris Dataset')
fig.show()
# Matplotlib graph
plt.figure(figsize=(8, 6))
plt.scatter(df['petal length (cm)'], df['petal width (cm)'], c=df['target'])
plt.xlabel('Petal Length (cm)')
plt.ylabel('Petal Width (cm)')
plt.title('Iris Dataset')
plt.show()
This is a sample notebook showcasing various elements.
Some text to explain the analysis.
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Data | Data | Data |
| Data | Data | Data |
The equation below shows an example using LaTeX:
$$ \int_{-\infty}^{\infty} e^{-x^2} dx $$This text is blue.
